package com.zzedu.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zzedu.common.annotation.Excel;
import jakarta.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 课程包关系对象 zz_school_course_r
 * 
 * @author Mr.Wang
 * @date 2025-03-03
 */
@TableName("zz_school_course_r")
public class ZzSchoolCourseR implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 课程包ID */
    @Excel(name = "课程包ID")
    @NotNull(message = "课程包ID不能为空")
    private Long courseId;

    /** 校区ID */
    @Excel(name = "校区ID")
    @NotNull(message = "校区ID不能为空")
    private Long schoolId;

    /** 添加时间 */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /** 更新时间 */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime gmtModify;

    /** 逻辑删除(0：未删除 1：id) */
    @TableLogic(delval = "id")
    @TableField(fill = FieldFill.INSERT)
    @NotNull(message = "校区ID不能为空")
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setGmtCreate(LocalDateTime gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(LocalDateTime gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify() 
    {
        return gmtModify;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return  ToStringBuilder.reflectionToString(this,ToStringStyle.JSON_STYLE);
    }
}
